home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib7 / v_09_07 / 9n07010a < prev    next >
Encoding:
Text File  |  1995-11-01  |  456 b   |  21 lines

  1.  
  2. /* values used by math functions
  3.     -- IEEE 754 version */
  4. #include "xmath.h"
  5.  
  6.         /* macros */
  7. #define NBITS    (48+_DOFF)
  8. #if _D0
  9. #define INIT(w0)    0, 0, 0, w0
  10. #else
  11. #define INIT(w0)    w0, 0, 0, 0
  12. #endif
  13.         /* static data */
  14. _Dconst _Hugeval = {{INIT(_DMAX<<_DOFF)}};
  15. _Dconst _Inf = {{INIT(_DMAX<<_DOFF)}};
  16. _Dconst _Nan = {{INIT(_DNAN)}};
  17. _Dconst _Rteps = {{INIT((_DBIAS-NBITS/2)<<_DOFF)}};
  18. _Dconst _Xbig = {{INIT((_DBIAS+NBITS/2)<<_DOFF)}};
  19.  
  20.  
  21.